




const {modellocationProfession} =require('../../../dao/model/model')
const { baseService2 } = require('../../baseService2')

/* 
1,修改导入的bean,和model,就是上面
2,把构造方法里的这些都改下

*/

/* 异常类 */
class userProfessionServiceError extends Error {
    constructor(error,message='userProfessionServiceError'){
        super()
        this.error = error
        this.message=message
        
    }
}


class userProfessionService extends baseService2 {

    static ins = new userProfessionService()

    constructor(){
        super(modellocationProfession,userProfessionServiceError)
    }

    static getIns (){
        if(this.ins){
            return this.ins
        }else{
            return new userProfessionService()
        }
    }
}







module.exports={userProfessionService}
